package peer.rudp.command;

public class Command {
	byte[] data;
	short commandType;
	public byte[] getData(){
		return data;
	}
	
	public static short checkCommandType(byte[] data){
		short type=-1;
		if(data.length>=2){
			type=peer.tools.ByteShortSwitch.toShort(data, 0);
		}
		return type;
	}
	
	
	
}
